<div class="content">
<h1>Users</h1>
<p><?php echo $html->link('Register', array('action' => 'add')); ?></p>
<table>
	<tr>
		<th>User Id</th>
		<th>Name</th>
        <th>Email</th>
	</tr>
    
<!-- Here's where we loop through our $posts array, printing out post info -->

	<?php foreach ($users as $user): ?>
	<tr>
		<td><?php echo $user['User']['id']; ?></td>
        <td><?php echo $html->link($user['User']['username'], "/users/view/".$user['User']['id']); ?></td>
        <td><?php echo $user['User']['email'];?></td>
	</tr>
	<?php endforeach; ?>
    

</table>
</div>